#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QDebug>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    this->hotkey_1 = new QHotkey(this);
    this->hotkey_1->setShortcut(QKeySequence(Qt::ALT + Qt::Key_Q), false);
    this->hotkey_1->setRegistered(true);


    connect(this->hotkey_1, &QHotkey::activated, this, &MainWindow::recData);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::recData()
{
    qInfo() << "------------------------------------------Qt::ALT + Qt::Key_Q";
}
